/*
提交链接:https://leetcode.cn/problems/running-sum-of-1d-array/description/
1480. 一维数组的动态和
赖德檀 2024/12/13
*/

class Solution {
public:
    vector<int> runningSum(vector<int>& nums) {
        vector<int>arr;
        int sum=0;
        for(int i=0;i<nums.size();i++)
        {
            sum+=nums[i];
            arr.push_back(sum);
        }
        return arr;
    }
};